package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 合同协议-物料价格表
 * </p>
 *
 * @author LX
 * @since 2018-09-17
 */
@TableName("erp_contract_commodity")
public class ErpContractCommodity extends Model<ErpContractCommodity> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 合同协议id
     */
    private Integer pid;
    /**
     * 品名
     */
    @TableField("com_name")
    private String comName;
    /**
     * 规格
     */
    @TableField("com_spec")
    private String comSpec;
    /**
     * 品牌
     */
    @TableField("com_brand")
    private String comBrand;
    /**
     * 型号
     */
    @TableField("com_mdel")
    private String comMdel;
    /**
     * 产地
     */
    @TableField("com_address")
    private String comAddress;
    /**
     * 单价
     */
    @TableField("com_price")
    private String comPrice;
    /**
     * 单位
     */
    @TableField("com_unit")
    private String comUnit;
    /**
     * 币种
     */
    @TableField("com_currency")
    private String comCurrency;
    @TableField("com_state")
    private String comState;

    //物料id
    private Integer materielId;
    
    @TableField("contract_id")
    private Integer contractId;


    public Integer getContractId() {
		return contractId;
	}

	public void setContractId(Integer contractId) {
		this.contractId = contractId;
	}

	public Integer getMaterielId() {
        return materielId;
    }

    public void setMaterielId(Integer materielId) {
        this.materielId = materielId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public String getComSpec() {
        return comSpec;
    }

    public void setComSpec(String comSpec) {
        this.comSpec = comSpec;
    }

    public String getComBrand() {
        return comBrand;
    }

    public void setComBrand(String comBrand) {
        this.comBrand = comBrand;
    }

    public String getComMdel() {
        return comMdel;
    }

    public void setComMdel(String comMdel) {
        this.comMdel = comMdel;
    }

    public String getComAddress() {
        return comAddress;
    }

    public void setComAddress(String comAddress) {
        this.comAddress = comAddress;
    }

    public String getComPrice() {
        return comPrice;
    }

    public void setComPrice(String comPrice) {
        this.comPrice = comPrice;
    }

    public String getComUnit() {
        return comUnit;
    }

    public void setComUnit(String comUnit) {
        this.comUnit = comUnit;
    }

    public String getComCurrency() {
        return comCurrency;
    }

    public void setComCurrency(String comCurrency) {
        this.comCurrency = comCurrency;
    }

    public String getComState() {
        return comState;
    }

    public void setComState(String comState) {
        this.comState = comState;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpContractCommodity{" +
        ", id=" + id +
        ", pid=" + pid +
        ", comName=" + comName +
        ", comSpec=" + comSpec +
        ", comBrand=" + comBrand +
        ", comMdel=" + comMdel +
        ", comAddress=" + comAddress +
        ", comPrice=" + comPrice +
        ", comUnit=" + comUnit +
        ", comCurrency=" + comCurrency +
        ", comState=" + comState +
        "}";
    }
}
